<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="r" value="${rsrvinfo}" />
<div id="reservinfo">
	<form id="reservFrm" method="post">
		<img src="image.bi?id=poster/${r.movno}.jpg" />
		<label for="rtitle">영화 제목</label>
		<input type="text" name="rtitle" id="rtitle" value="${r.title}" readonly="readonly" />
		<label for="rshdate">날짜</label>
		<input type="text" name="rshdate" id="rshdate" value="${r.shdate}" readonly="readonly" />
		<label for="rshtime" class="float-none">시간</label>
		<input type="text" name="rshtime" id="rshtime" value="${r.shtime}" readonly="readonly" />
		<label for="rtheater">상영관</label>
		<input type="text" name="rtheater" id="rtheater" value="${r.cinename}&nbsp;${r.theater}" readonly="readonly" />
		<label for="rseat">좌석번호</label>
		<input type="text" name="rseat" id="rseat" value="${seat}" readonly="readonly" />
		<label for="rpeople">인원</label>
		<input type="text" name="rpeople" id="rpeople" value="${people}" readonly="readonly" />
		<label for="rprice">가격</label>
		<input type="text" name="rprice" id="rprice" value="${price}" readonly="readonly" />원
		<input type="hidden" name="mno" value="${sessionScope.mno}" />
		<input type="hidden" name="movno" value="${r.movno}" />
		<input type="hidden" name="cno" value="${r.cno}" />
		<input type="hidden" name="shno" value="${r.shno}" />
	</form>
</div>
<div id="pay">
	<button type="button" class="btn btn-default active">무통장 입금</button>
	<button type="button" class="btn btn-default" disabled="disabled">실시간 계좌 이체</button>
	<button type="button" class="btn btn-default" disabled="disabled">핸드폰 결제</button>
	<button type="button" class="btn btn-default" disabled="disabled">신용카드</button>
	<h2>예매 하시겠습니까?</h2>
	<button type="button" onclick="reservation()" class="btn btn-primary">확 인</button>
</div>
<script>
function reservation(){
	var frm = document.getElementById("reservFrm");
	frm.action = "reservation.bi";
	frm.method = "post";
	frm.submit();
}
</script>